package com.decorate.demo05.extend;

import lombok.Data;

@Data
public class Grandfather {
    private String name;
    private Integer age;
    private String sex;

    public Grandfather(){}

    public Grandfather(String name, Integer age, String sex){
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public void print(){
        System.out.println(name+","+age+","+sex);
    }
}
